<template>
  <div class="home">
    <div class="h--header">
      <h2>
        {{title}}
      </h2>
      <panel ref="panelRef"></panel>
    </div>
    <div class="h--main">
      <dbdvehide @refresh-panel="handleRefreshPanel"></dbdvehide>
    </div>
  </div>
</template>

<script>
// @ is an alias to /src
import panel from "./panel/index";
import dbdvehide from "./generator/dbdvehicle/index";

export default {
  name: "Home",
  components: {
    panel,
    dbdvehide,
  },
  data:() => ({
    title:'企业车辆管理程序'
  }),
  computed:{
  },
  methods:{
    handleRefreshPanel(){
      this.$refs.panelRef && this.$refs.panelRef.apiRefresh();
    }
  }
};
</script>
